wayland: Handle subsurface as popup parent
authorJonas Ådahl <jadahl@gmail.com>
Thu, 5 Jan 2017 08:01:49 +0000 (16:01 +0800)
committerOlivier Fourdan <ofourdan@redhat.com>
Tue, 17 Jan 2017 08:02:41 +0000 (09:02 +0100)
commit7ca6d7585fb7ebd5d3d7bb31bcde92e36f75d419
treef765000fc393d41b591388f2723b4402832b7433
parent01d16524da15cf430844d5a6dd7241304e9142f1
wayland: Handle subsurface as popup parent

When a subsurface is used as a parent of a popup, GDK needs to traverse
up to the transient-for as the next parent, to properly find the parent
used by the popup positioner. This is because the parent of a popup
must always either be an xdg_popup or an xdg_surface, but traversing
the "parent" (in GDK terms) upwards from a subsurface will end up on
the fake root window before we hit the actual parent (in Wayland terms).

https://bugzilla.gnome.org/show_bug.cgi?id=776225
gdk/wayland/gdkwindow-wayland.c